import request from '../utils/request'

// 根据关键词请求搜索建议的API接口
export const getSuggListAPI = function (q) {
  return request.get('/v1_0/suggestion', {
    params: { q }
  })
}

export const SearchResultAPI = function (kw, page) {
  return request.get('/v1_0/search', {
    params: {
      q: kw,
      page
    }
  })
}
